﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/loggedin.Master" AutoEventWireup="true" CodeBehind="sendmessage.aspx.cs" Inherits="Ciripescu_WebRole.sendmessage" %>

<%@ Register Assembly="WebTools.UI" Namespace="WebTools.UI.WebControls" TagPrefix="webtools" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script type="text/javascript">
    function textCounter() {
        //var field = document.getElementById('ctl00_ContentPlaceHolder1_TabContainer1_TabPanel1_txtMesaj');
        var field = document.getElementById('<%= txtMesaj.ClientID %>'); 
        var countfield = document.getElementById("lung_mesaj");
        var maxlimit = 255;
        if (field.value.length > maxlimit) {
            field.value = field.value.substring(0, maxlimit);
        }
        else {
            countfield.innerHTML = maxlimit - field.value.length;
        }
    }

</script>

    <cc1:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" CssClass="fancy fancy-green">
        <cc1:TabPanel runat="server" HeaderText="Trimite mesaj" ID="TabPanel1">
        <ContentTemplate>
<div style="float:left; height: 33px;"><h3 style="margin:0;padding:0;"><asp:Label ID="lblTitlu" runat="server" Text="Label" CssClass="label_large" ></asp:Label></h3></div>
<div style="float:left; height: 33px;">&nbsp;&nbsp;
    
    <webtools:RolloverImageButton ID="btnCancel" runat="server" onclick="btnCancel_Click" ImageUrl="/images/buttons/back.png" MouseOutImageUrl="/images/buttons/back.png" MouseOverImageUrl="/images/buttons/back_o.png"></webtools:RolloverImageButton>
</div>
<div style="float:right; height: 33px; padding-top:10px; font-size:larger;" id="lung_mesaj">255</div>
<div style="clear:both">
    <div id="errors" runat="server"></div>
    <asp:TextBox ID="txtMesaj" runat="server" Height="65px" MaxLength="255" 
        TextMode="MultiLine" Width="100%" onKeyDown="textCounter();" 
        onKeyUp="textCounter();" CssClass="textbox"></asp:TextBox>
</div>



<table width="100%">
    <tr>
        <td>&nbsp;</td>
        <td width="200px" align="right">
            
            <webtools:RolloverImageButton ID="btnSendMessage" runat="server" onclick="btnSendMessage_Click" ImageUrl="/images/buttons/trimite_mp.png" MouseOutImageUrl="/images/buttons/trimite_mp.png" MouseOverImageUrl="/images/buttons/trimite_mp_o.png" ToolTip="Trimite mesaj privat"></webtools:RolloverImageButton>
            </td>
    </tr>

</table>
</ContentTemplate>
</cc1:TabPanel>
    </cc1:TabContainer>
</asp:Content>
